<template>
	<view class="mine">
		<!-- 登录组件 -->
		<login v-if="!show" @passFun="passFun"></login>
		<login2 v-else></login2>
	</view>
</template>

<script>
	import login from "@/components/login/login.vue"
	import login2 from "@/components/login2/login2.vue"
	import { mapState } from 'vuex'
	export default {
		components: {
			login,
			login2
		},
		data() {
			return {
				show: true
			};
		},
		methods:{
			passFun(v){
				this.show = v
			}
		},
		computed: {
			...mapState('user', ['userInfo']) // vuex
		}
	}
</script>

<style lang="scss" scoped>

</style>
